﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace Handrise.CDCable.Business
{
    /// <summary>
    /// 测温温度
    /// </summary>
    [Serializable]
    [EntityMapping(UploadListName = "mtdManualmonimains", UploadEntityName = "MtdManualmonimainData")]
    public class Temprature
    {
        [EntityMapping(UploadColumnName = "fid")]
        public string TempratureID { get; set; }

        /// <summary>
        /// 设备ID
        /// </summary>
        [EntityMapping(UploadColumnName = "relativerecordid")]
        public string DeviceID { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        [EntityMapping(UploadColumnName = "substation")]
        public string DeviceName { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 温度值
        /// </summary>
        [EntityMapping(UploadColumnName = "ctemprature")]
        public double? TempratureValue { get; set; }

        /// <summary>
        /// 采集时间
        /// </summary>
        [EntityMapping(UploadColumnName = "mtime")]
        public DateTime? CollectDateTime { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [EntityMapping(UploadColumnName = "fworkingcharge")]
        public string UserName { get; set; }

        /// <summary>
        /// 上报状态
        /// </summary>
        public string ReportState { get; set; }

        /// <summary>
        /// 给主站使用的字段
        /// </summary>
        [EntityMapping(UploadColumnName = "version")]
        public int Version { get; set; }
    }
}
